    <include file="App/Admin/View/Public/left.html"/>
    <!--/sidebar-->
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:U('Index/index')}">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">等待订单</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
				<div class="search-wrap">
					<div class="search-content">
						<form action="{:U('Trades/index')}" method="post">
							<table class="search-tab">
								<tr>
                                    <!-- <th width="120">选择币种:</th>
                                    <td>
                                        <select name="type" id="">
                                            <option value="0">全部</option>
                                           
                                                <option value="1">分红积分</option>
												<option value="2">奖金积分</option>
                                            
                                        </select>
                                    </td> -->
                               

									<th width="70">买家:</th>
									<td><input class="common-text" placeholder="买家账号" name="account" value="" id="" type="text"></td>
									<td><input class="btn btn-primary btn2" value="查询" type="submit"></td>
								</tr>
							</table>
						</form>
					</div>
				</div>
			</div>
        </div>
        <div class="result-wrap">
            <!-- <form name="myform" id="myform" method="post" >  --> 
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th style="text-align:center;">月份</th>
                            <th style="text-align:center;">VR总额</th>
                            <th style="text-align:center;">冻结总额</th>
                            <th style="text-align:center;">可交易总额</th>
                            <th style="text-align:center;">阶段人次</th>
					        <th style="text-align:center;">已释放比例</th>
							<th style="text-align:center;">释放比例</th>
                            <th style="text-align:center;">操作</th>
                        </tr>
                        <volist name="arr" id="vo" empty="$empty">
                        <tr>
                            <td align="center">{$vo.month}月份</td>
                            <td align="center">{$vo.all_num}</td>
                            <td align="center">{$vo.forzen_num}</td>
                            <td align="center">{$vo.sell_num}</td>
					        <td align="center">{$vo.count}</td>
                            <td align="center">{$vo.release_bili}</td>
                            <td align="center">
                                <select name="bili" id='bili'>
                                    <option value ="10">10%</option>
                                    <option value ="20">20%</option>
                                    <option value="30">30%</option>
                                    <option value="40">40%</option>
                                    <option value ="50">50%</option>
                                    <option value ="60">60%</option>
                                    <option value="70">70%</option>
                                    <option value="80">80%</option>
                                    <option value="90">90%</option>
                                    <option value="100">100%</option>
                                </select>   
                            </td>
                            <!-- <td align="center"><a href="{:U('Trades/monthRelease',array('month'=>$vo['month']))}">释放</a></td> -->
                             <td align="center"><button onclick="sub({$vo.month})">释放</button></td>
                        </tr>
                        </volist>
                    </table>
                    <div class="list-page"> <ul>{$page}</ul></div>
                </div>
            <!-- </form> -->
        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>
<script>
$(".sub-menu").eq(4).show();
$(".sub-menu").eq(4).children("li").eq(3).addClass("on");
</script>
<script>
    function sub(id){
        var bili = $('#bili').val();
        var url = "{:U('Trades/monthRelease')}";
        layer.confirm('确定释放？', {
            btn: ['确定','取消'] //按钮
        }, function(){
            //确定
           // alert('请稍等');
            $.post(url,{'id':id,'bili':bili},function(data){
                layer.msg(data.info);

            });

        }, function(){
           //取消

        });
        

    }


</script>